<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<script src="https://unpkg.com/vue"></script>
		<script src="https://unpkg.com/vuex"></script>
	</head>
	<body>
		<div id="app"></div>
	</body>
	<script>
    const types = {
      SETKEY:"SETKEY"
    }
		const modulesA = {
			state: {
				count: 0,
			},
			mutations: {
				[types.SETKEY](state) {
					state.count++
				},
      },
      actions:{
        handleAsync({commit}){
          commit(types.SETKEY)
        }
      }
		}
		const store = new Vuex.Store({
			modules: {
				a: modulesA,
			},
		})
	</script>
</html>
